package com.duo.enums.errorcode;

import lombok.Getter;

@SuppressWarnings(value = "all")
@Getter
public enum OrderBusinessCode implements StatusCode {

    ORDER_NOT_FOUND_ERROR(600, "订单不存在"),

    ORDER_CART_EMPTY_ERROR(601, "购物车为空"),

    ORDER_PAID_ERROR(602, "该订单已支付"),

    ORDER_CANCEL_ERROR(603, "用户取消订单失败"),

    ORDER_STATUS_ERROR(604, "订单取消失败");

    private int code;
    private String message;

    OrderBusinessCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

}
